package cn.tedu.csmall.product.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class CategoryUpdateDTO implements Serializable {
    @ApiModelProperty(value = "类别id",required = true)
    @NotNull(message="添加类别失败，必须提交类别id")
    private Long id;
    @ApiModelProperty(value = "类别名称",required = true)
    @NotNull(message="添加类别失败，必须提交类别名称")
    private String name;
    @ApiModelProperty(value = "类别关键字列表",required = true)
    @NotNull(message = "添加类别关键字列表失败，必须提交类别关键字列表！")
    private String keywords;
    @ApiModelProperty(value = "排序序号",required = true)
    @NotNull(message = "添加排序序号失败，必须提交排序序号！")
    private Integer sort;
    @ApiModelProperty(value = "图标",required = true)
    @NotEmpty(message = "添加类别图标失败，必须提交类别图标！")
    private String icon;

    }

